package com.ffyc.cemp.services.service.impl;

import com.ffyc.cemp.dao.mapper.ISeatMapper;
import com.ffyc.cemp.domain.entity.Seat;
import com.ffyc.cemp.services.service.ISeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SeatServiceImpl implements ISeatService {
    @Autowired
    private ISeatMapper seatMapper;

    @Override
    public void bookSeat(String seats, int scheduleId) {
        String[] split = seats.split(",");
        for (String seat : split) {
            String rownum=seat.substring(0,1);
            String other=seat.substring(1);
            int colnum=Integer.parseInt(other);
            Seat s=new Seat();

        }
    }
}
